#include "../Model/ssm.h"
#include <stdio.h>

int main()
{
	Simulation source, dest;

	

	source.dt	= 45.64;
       	source.t	= 61.12;
	source.imax	= 419;
	source.iprint	= 12;

	writeSim("testSim.dat", &source);
	
	readSim("testSim.dat" , &dest);

	if( dest.dt ==  45.64 &&
	    dest.t ==  61.12  &&
	    dest.imax ==  419 &&
	    dest.iprint == 12 )
	{
		return 0;
	}
	
	fprintf(stderr,"ERROR: sourceSim != destSim\n");
	return -1;
}
